package com.controller;


import com.service.WeatherService;
import com.util.ChatsResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WeatherController {

    @Autowired
    private WeatherService weatherService;


    @GetMapping("/getWeatherList")
    public ChatsResult getWeatherList(){
        ChatsResult result = weatherService.getWeatherList();


        return result;

    }

}
